﻿<Window x:Class="EveMarkets.Simalution"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Simalution" 
		Height="Auto" Width="Auto" WindowStartupLocation="CenterOwner" SizeToContent="WidthAndHeight">
    <Grid>
		<StackPanel Orientation="Vertical">
			<Label Content="Label" HorizontalAlignment="Left" Name="labelNameItem" VerticalAlignment="Top" FontSize="28" />
			
			<StackPanel Orientation="Horizontal">
				<Label Content="Enter number of Runs : " HorizontalAlignment="Left" Name="labelNbreItem" VerticalAlignment="Top" FontSize="13" />
				<TextBox Height="23" HorizontalAlignment="Left" Name="textBoxNbreBlueprint" VerticalAlignment="Top" Width="120" TextChanged="Event_TextChanged_UpdateDataGrid" />
			</StackPanel>
				
			<StackPanel Orientation="Horizontal" Margin="0,20,0,0">
				<StackPanel Orientation="Vertical">
					<DataGrid AutoGenerateColumns="False" Height="Auto" HorizontalAlignment="Left" Margin="10,0,0,0" Name="dataGridDepart" VerticalAlignment="Top" Width="Auto" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" AlternatingRowBackground="#FFCECEFF" IsReadOnly="True" CanUserResizeRows="False">
						<DataGrid.Columns>
							<DataGridTextColumn Header="Material" Binding="{Binding LienVers_invItemsTypes.typeName}" />
							<DataGridTextColumn Header="Quantity" Binding="{Binding Quantite, StringFormat={}{0:N}}" />
							<DataGridTextColumn Header="Unit price" Binding="{Binding PrixUnitaire, StringFormat={}{0:N}}" />
							<DataGridTextColumn Header="Total price" Binding="{Binding PrixTotal, StringFormat={}{0:N}}" />
						</DataGrid.Columns>
					</DataGrid>

					<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
						<Label Content="Total Price : " HorizontalAlignment="Left" Name="labelTotalPrice" VerticalAlignment="Top" FontSize="13" />
						<TextBox Height="23" HorizontalAlignment="Left" Name="textBoxTotalPrice" VerticalAlignment="Top" Width="120" IsReadOnly="True" />
					</StackPanel>

					<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
						<Label Content="Benefice : " HorizontalAlignment="Left" Name="labelBenefice" VerticalAlignment="Top" FontSize="13" />
						<TextBox Height="23" HorizontalAlignment="Left" Name="textBoxBenefice" VerticalAlignment="Top" Width="120" IsReadOnly="True" />
					</StackPanel>
				</StackPanel>

				<StackPanel Orientation="Vertical">
					<StackPanel Orientation="Horizontal">
						<DataGrid AutoGenerateColumns="False" Height="Auto" HorizontalAlignment="Left" Margin="10,0,0,0" Name="dataGridName" VerticalAlignment="Top" Width="Auto" AlternatingRowBackground="#FFCECEFF" IsReadOnly="True" CanUserResizeRows="False">
							<DataGrid.Columns>
								<DataGridTextColumn Header="Material" Binding="{Binding LienVers_invItemsTypes.typeName}" />
							</DataGrid.Columns>
						</DataGrid>
						<DataGrid AutoGenerateColumns="False" Height="Auto" HorizontalAlignment="Left" Margin="0,0,0,0" Name="dataGridFinal" VerticalAlignment="Top" Width="Auto" AlternatingRowBackground="#FFCECEFF" CanUserReorderColumns="False" CanUserResizeColumns="False" CanUserSortColumns="False" CanUserResizeRows="False" IsReadOnly="True">
							<DataGrid.Columns>
								<DataGridTextColumn Header="Unit price" Binding="{Binding PrixUnitaire, StringFormat={}{0:N}}" />
								<DataGridTextColumn Header="Quantity" Binding="{Binding Quantite, StringFormat={}{0:N}}" />
								<DataGridTextColumn Header="Total price" Binding="{Binding PrixTotal, StringFormat={}{0:N}}" />
							</DataGrid.Columns>
						</DataGrid>
					</StackPanel>

					<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
						<Label Content="New Total Price : " HorizontalAlignment="Left" Name="labelNewTotalPrice" VerticalAlignment="Top" FontSize="13" />
						<TextBox Height="23" HorizontalAlignment="Left" Name="textBoxNewTotalPrice" VerticalAlignment="Top" Width="120" IsReadOnly="True" />
					</StackPanel>

					<StackPanel Orientation="Horizontal" Margin="0,10,0,0">
						<Label Content="Estimate Benefice : " HorizontalAlignment="Left" Name="labelNewBenefice" VerticalAlignment="Top" FontSize="13" />
						<TextBox Height="23" HorizontalAlignment="Left" Name="textBoxNewBenefice" VerticalAlignment="Top" Width="120" IsReadOnly="True" />
					</StackPanel>
				</StackPanel>

			</StackPanel>
		
		</StackPanel>
	</Grid>
</Window>
